<html>
<head>
<script type="text/javascript">
var flags = {
	"ONEWAY_MESSAGE_FLAG" : 1,
	"TWOWAY_MESSAGE_FLAG" : 2,
	"MY_POST_FLAG" : 4,
	"FRIEND_POST_FLAG" : 8,
	"MY_COMMENT_ON_STATUS_FLAG" : 16,
	"MY_COMMENT_ON_LINK_FLAG" : 32,
	"MY_COMMENT_ON_NOTE_FLAG" : 64,
	"MY_COMMENT_ON_PHOTO_FLAG" : 128,
	"FRIEND_COMMENT_ON_STATUS_FLAG" : 256,
	"FRIEND_COMMENT_ON_LINK_FLAG" : 512,
	"FRIEND_COMMENT_ON_NOTE_FLAG" : 1024,
	"FRIEND_COMMENT_ON_PHOTO_FLAG" : 2048,
	"MY_LIKE_ON_STATUS_FLAG" : 4096,
	"MY_LIKE_ON_LINK_FLAG" : 8192,
	"MY_LIKE_ON_NOTE_FLAG" : 16384,
	"MY_LIKE_ON_PHOTO_FLAG" : 32768,
	"FRIEND_LIKE_ON_STATUS_FLAG" : 65536,
	"FRIEND_LIKE_ON_LINK_FLAG" : 131072,
	"FRIEND_LIKE_ON_NOTE_FLAG" : 262144,
	"FRIEND_LIKE_ON_PHOTO_FLAG" : 524288,
	getMessageMode: function(){
		return this.ONEWAY_MESSAGE_FLAG + this.TWOWAY_MESSAGE_FLAG;
	},
	getPostMode: function(){
		
	},
	getCommentMode: function(){
		
	},
	getLikeMode: function(){
		
	}
};

console.log(flags.getMessageMode());
</script>
<body>
</body>
</html>